package com.pentofab.payrollmanagement.dao.model;

import java.util.ArrayList;


public class ViewSalaryProfileDetail {
	
   private String basic; 
	
   private String bonus; 
	
   private String conveyance; 
	
   private String desc; 
	
   private String esi; 
	
   private String hra; 
	
   private String maxPF; 
	
   private String medicalAllo; 
	
   private String pfPer; 
	
   private String profileName; 
   
   private String specialAllo;
	
   private String others;
	
	public String getSpecialAllo() {
	return specialAllo;
}


public void setSpecialAllo(String specialAllo) {
	this.specialAllo = specialAllo;
}


	public ViewSalaryProfileDetail(String basic, String bonus,
			String conveyance, String desc, String esi,
			String hra, String maxPF, String medicalAllo, String pfPer,
			String profileName,String specialAllo, String others) {

		this.basic = basic;
		this.bonus = bonus;
		this.conveyance = conveyance;
		this.esi = esi;
		this.hra = hra;
		this.maxPF = maxPF;
		this.medicalAllo = medicalAllo;
		this.pfPer = pfPer;
		this.profileName = profileName;
		this.specialAllo = specialAllo;
		this.desc = desc;
		this.others = others;

	}
	
	
	public String getBasic() {
		return basic;
	}


	public void setBasic(String basic) {
		this.basic = basic;
	}


	public String getBonus() {
		return bonus;
	}


	public void setBonus(String bonus) {
		this.bonus = bonus;
	}


	public String getConveyance() {
		return conveyance;
	}


	public void setConveyance(String conveyance) {
		this.conveyance = conveyance;
	}


	public String getDesc() {
		return desc;
	}


	public void setDesc(String desc) {
		this.desc = desc;
	}


	public String getEsi() {
		return esi;
	}


	public void setEsi(String esi) {
		this.esi = esi;
	}


	public String getHra() {
		return hra;
	}


	public void setHra(String hra) {
		this.hra = hra;
	}


	public String getMaxPF() {
		return maxPF;
	}


	public void setMaxPF(String maxPF) {
		this.maxPF = maxPF;
	}


	public String getMedicalAllo() {
		return medicalAllo;
	}


	public void setMedicalAllo(String medicalAllo) {
		this.medicalAllo = medicalAllo;
	}


	public String getPfPer() {
		return pfPer;
	}


	public void setPfPer(String pfPer) {
		this.pfPer = pfPer;
	}


	public String getProfileName() {
		return profileName;
	}


	public void setProfileName(String profileName) {
		this.profileName = profileName;
	}


public String getOthers() {
		return others;
	}


	public void setOthers(String others) {
		this.others = others;
	}


public static ArrayList<ViewSalaryProfileDetail> getViewSalaryProfileDetailList(ArrayList<SalaryProfile> salaryProfileList) {
		
		ArrayList<ViewSalaryProfileDetail> detail = new ArrayList<ViewSalaryProfileDetail>();
		for (int i = 0; i < salaryProfileList.size(); i++) {
			SalaryProfile cur = salaryProfileList.get(i);
			
			System.out.println("cur : "+cur);
			detail.add(new ViewSalaryProfileDetail(cur.getBasic(),cur.getBonus(),cur.getConveyance(),cur.getDesc(),cur.getEsi(),
						cur.getHra(),cur.getMaxPF(),cur.getMedicalAllo(),cur.getPfPer(),cur.getProfileName(),cur.getSpecialAllow(),
						cur.getOthers()));
		}

		return detail;

	}


/**
 * Constructs a <code>String</code> with all attributes
 * in name = value format.
 *
 * @return a <code>String</code> representation 
 * of this object.
 */
public String toString()
{
    final String TAB = "    ";
    
    String retValue = "";
    
    retValue = "ViewSalaryProfileDetail ( "
        + super.toString() + TAB
        + "basic = " + this.basic + TAB
        + "bonus = " + this.bonus + TAB
        + "conveyance = " + this.conveyance + TAB
        + "desc = " + this.desc + TAB
        + "esi = " + this.esi + TAB
        + "hra = " + this.hra + TAB
        + "maxPF = " + this.maxPF + TAB
        + "medicalAllo = " + this.medicalAllo + TAB
        + "pfPer = " + this.pfPer + TAB
        + "profileName = " + this.profileName + TAB
        + "specialAllo = " + this.specialAllo + TAB
        + " )";

    return retValue;
}


}
